from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
import urllib2
import urllib
import simplejson as json
import os
from google.appengine.ext.webapp import template
import datetime
from google.appengine.ext import db
import sys


class Race(db.Model):
    name = db.StringProperty()
    id = db.IntegerProperty()
    mask = db.IntegerProperty()
    side = db.StringProperty()


class Class(db.Model):
    name = db.StringProperty()
    id = db.IntegerProperty()
    mask = db.IntegerProperty()
    powerType = db.StringProperty()


class Realm(db.Model):
    status = db.StringProperty()
    name = db.StringProperty()
    queue = db.BooleanProperty()
    type = db.StringProperty()
    slug = db.StringProperty()
    population = db.StringProperty()


class Guild(db.Model):
    lastModified = db.IntegerProperty()
    name = db.StringProperty()
    realm = db.StringProperty()
    level = db.IntegerProperty()
    side = db.IntegerProperty()
    achievement_points = db.IntegerProperty()


class Character(db.Model):
    rank = db.IntegerProperty()
    name = db.StringProperty()
    memberClass = db.IntegerProperty()
    race = db.StringProperty()
    gender = db.IntegerProperty()
    realm = db.StringProperty()
    level = db.IntegerProperty()
    achievement_points = db.IntegerProperty()
    thumbnail = db.StringProperty()


class FbUser(db.Model):
    id = db.IntegerProperty()
    fullname = db.StringProperty()


class TestClass(db.Model):
    name = db.StringProperty()
    message = db.StringProperty()
